package com.ssy.lingxi.order.api.model.openapi.request;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.PositiveOrZero;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 供应商 - 订单发货商品及数量
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-20
 */
public class OpenApiOrderDeliveryProductVO implements Serializable {
    private static final long serialVersionUID = 8867736247806464390L;

    /**
     * 订单商品Id
     */
    @NotNull(message = "订单商品Id要大于0")
    @Positive(message = "订单商品Id要大于0")
    private Long orderProductId;

    /**
     * 发货数量
     */
    @NotNull(message = "发货数量要大于等于0")
    @PositiveOrZero(message = "发货数量要大于等于0")
    private BigDecimal deliveryCount;

    public Long getOrderProductId() {
        return orderProductId;
    }

    public void setOrderProductId(Long orderProductId) {
        this.orderProductId = orderProductId;
    }

    public BigDecimal getDeliveryCount() {
        return deliveryCount;
    }

    public void setDeliveryCount(BigDecimal deliveryCount) {
        this.deliveryCount = deliveryCount;
    }
}
